import requests from '../config/request.js'

//获取客房类型列表
export const getGuestRoomTypeList = (payload) => {
    return requests.httpRequest({
        url: "GuestRoom/GetGuestRoomTypeList",
        data:payload
    });
};

//获取下单时客房类型
export const searchPageGuestRoomTypeList = (payload) => {
    return requests.httpRequest({
        url: "GuestRoom/SearchPageGuestRoomTypeList",
        data:payload
    });
};

// export const getGuestRoomTypeInfo = (payload) => {
//     return requests.httpTokenRequest({
//         url: "GuestRoom/GetGuestRoomTypeInfo",
//         data:payload
//     });
// };

export const getStoreGuestRoomInfo = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/GetStoreGuestRoomInfo",
        data:payload
    });
};

export const getStoreListByRoomType = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/GetStoreListByRoomType",
        data:payload
    });
};

export const submitGuestRoomOrder = (payload) => {
    return requests.httpTokenRequestSpecial({
        url: "GuestRoom/SubmitGuestRoomOrder",
        data:payload
    });
};

export const cancelGuestRoomOrder = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/CancelGuestRoomOrder",
        data:payload
    });
};


export const guestRoomOrderRefund = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/GuestRoomOrderRefund",
        data:payload
    });
};


export const getMyGuestRoomOrderList = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/GetMyGuestRoomOrderList",
        data:payload
    });
};

//获取当前门店的客房
export const searchCurrentStoreRoom = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/SearchCurrentStoreRoom",
        data:payload
    });
};

//获取选中的客房信息
export const getStoreGuestRoomDetailInfo = (payload) => {
    return requests.httpTokenRequest({
        url: "GuestRoom/GetStoreGuestRoomDetailInfo",
        data:payload
    });
};


// **************************************

export const getGuestRoomTypeInfo = (payload) => {
	 return requests.requestAll("/client/room/queryRoomByStoreId",'post',payload,false);
};